package com.mynameisguillaume.utils.color 
{

	/**
	 * ...
	 * @author guibar
	 */
	public class ColorUtils 
	{
		public static function toHex(pDecimal : int) : *
		{
			return pDecimal.toString(16);
		}

		public static function toHexColor(pDecimal : int) : *
		{
			return "0x" + pDecimal.toString(16);
		}

		public static function combineColors24(pRed : int, pGreen : int, pBlue : int) : *
		{
			return toHexColor(pRed << 16 | pGreen << 8 | pBlue);
		}
		
		/*
		 * Don't work for the moment
		 * 
		public static function combineColors32(pAlpha : int, pRed : int, pGreen : int, pBlue : int) : *
		{
			return toHexColor(pAlpha << 24 | pRed << 16 | pGreen << 8 | pBlue);
		}
		 * 
		 */
	}
}